package com.winit.openapi.isp.vo;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * 创建提货单地址实体
 * 
 * @author jiaohua.wu
 */
public class CreatePickUpOrderAddr {

    /**
     * 字段：国家ID 是否必填：Y 类型：Long 长度：11
     */
    @NotNull(message = "{02010250001}")
    @Digits(integer = 11, fraction = 0, message = "{02010250002}")
    private Long   countryID;     // 国家

    /**
     * 字段：省ID 是否必填：Y 类型：Long 长度：11
     */

    @NotNull(message = "{02010250001}")
    @Digits(integer = 11, fraction = 0, message = "{02010250002}")
    private Long   provinceID;

    /**
     * 字段：城市ID 是否必填：Y 类型：Long 长度：11
     */
    @NotNull(message = "{02010250001}")
    @Digits(integer = 11, fraction = 0, message = "{02010250002}")
    private Long   cityID;

    /**
     * 字段：提货地址 是否必填：Y 类型：String 长度：128
     */
    @NotBlank(message = "{02010250001}")
    @Length(min = 1, max = 128, message = "{02010250002}")
    private String pickupAddress;

    /**
     * 字段：邮箱 是否必填：N 类型：String 长度：32
     */
    @Length(min = 0, max = 60, message = "{02010250002}")
    @Email(message = "{02010250003}")
    private String email;

    /**
     * 字段：联系人 是否必填：Y 类型：String 长度：32
     */
    @NotBlank(message = "{02010250001}")
    @Length(min = 1, max = 32, message = "{02010250002}")
    private String contact;

    /**
     * 字段：联系人电话 是否必填：Y 类型：String 长度：32
     */
    @NotBlank(message = "{02010250001}")
    @Length(min = 1, max = 32, message = "{02010250002}")
    private String phoneNo;

    /**
     * 字段：邮编 是否必填：Y 类型：String 长度：32
     */
    @NotBlank(message = "{02010250001}")
    @Length(min = 1, max = 32, message = "{02010250002}")
    private String zipCode;

    public Long getCountryID() {
        return countryID;
    }

    public void setCountryID(Long countryID) {
        this.countryID = countryID;
    }

    public Long getProvinceID() {
        return provinceID;
    }

    public void setProvinceID(Long provinceID) {
        this.provinceID = provinceID;
    }

    public Long getCityID() {
        return cityID;
    }

    public void setCityID(Long cityID) {
        this.cityID = cityID;
    }

    public String getPickupAddress() {
        return pickupAddress;
    }

    public void setPickupAddress(String pickupAddress) {
        this.pickupAddress = pickupAddress;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getPhoneNo() {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

}
